﻿@{
    ViewBag.Title = "Home Page";
}

            <div id="blog-list">
                @Html.Partial("BlogList")
            </div>

  <script type="text/javascript">
      $().ready(function () {
          $(".page-number").live("click", function () {

              var page = parseInt($(this).html());             
              $.ajax({
                  url: '@Url.Action("BlogList")',
                  data: { "page": page },
                  success: function (data) {
                      $("#blog-list").html(data);
                  }
              });
          });
      });
</script>